package cn.source.zk.domain.dto;

import cn.hutool.core.date.DateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseData2TableDTO {

    /**
     * 通道guid
     */
    private String tdGuid;

    /**
     * 表名称
     */
    private String tableName;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private DateTime startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private DateTime endTime;


    // private List<String> fields;
    private Map<Integer,String> fields;

    // private Integer pageNum;
    //
    // private Integer pageSize;
}
